package com.vichat.ccs.thread;
import com.vichat.common.constant.GlobalConstant;
import com.vichat.common.signal.CmdUtil;
import com.vichat.common.vo.PageFilter;
import com.vichat.user.entity.UserBasic;
import com.vichat.user.service.IUserService;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.List;

/**
 * Created by ranjx on 2018/04/08.
 */
public class SendAppUpgradeThread extends Thread {
    private static Logger logger = LoggerFactory.getLogger(SendAppUpgradeThread.class);
    private UserBasic userBasic;

    public SendAppUpgradeThread(UserBasic userBasic) {
        this.userBasic = userBasic;
    }

    @Override
    public void run() {
        try {
            if(userBasic != null){
                CmdUtil.sendImMsg(10000, userBasic.getUid(), 0, GlobalConstant.IMS_APP_UPGRADE, "");
            }
        } catch (Exception e) {
            logger.error("发送消息失败>>>>>>" + e.getMessage(), e);
        }
    }

}
